import { Route } from "react-router-dom"; 
export default  function RouteWithSubRoutes(props) {
 // console.log("props为",props);
    return (
      <Route
        path={props.path} //  /  about  wode
        render={(item) => {
          console.log("item",item);

          //<Login></Login>
          //<About></About>
          //<Wode  = {props.list}></Wode>
          return  <props.component {...item}  list={props.list}></props.component>
        }}
      />
    );
  }